ClearEventLog (advapi32)
Last changed: DFx Technology Limited-81.137.214.16

.
Summary
Clears the specified Event Log (and optionally backs it up first)

C# Signature:

[DllImport("advapi32.dll", SetLastError=true, EntryPoint="ClearEventLog")]
public static extern int ClearEventLogA(int hEventLog, string lpBackupFileName)

VB Signature:

Declare Function ClearEventLog Lib "advapi32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

hEventLog is the handle for the log you wish to operate on, this handle can be got from OpenEventLog if needed.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation